package com.pinapel.aixml.controller.Menu;

import java.io.File;
import com.pinapel.aixml.controller.IController;
import com.pinapel.aixml.controller.IMenuController;
import com.pinapel.aixml.models.EnumModelType;
import com.pinapel.aixml.ui.menuBar.MenuFile;


public interface IMenuFileController extends IController{
	public void setTopController(IMenuController cont);
	public MenuFile getView();
	public void setView(MenuFile view);
	
	/**
	 * Open a File descriptor and load it into a TextEditor
	 * @param f
	 */
	public void openFile(File f);

	/**
	 * 
	 * @param f
	 */
	public void saveFileAs(File f);
	
	/**
	 * 
	 * @param text
	 * @param type
	 */
	public void saveFile(String text, EnumModelType type);

	/**
	 * Delete the text of the selected tab without prompt
	 */
	public void newFile();
}
